    package org.fly.dao;

    import org.fly.bean.Supplier;
    import org.fly.bean.query.SupplierQuery;
    import org.apache.ibatis.annotations.Param;
    import org.springframework.stereotype.Repository;

    import java.util.List;

    /**
    * Created by autoCode on 2018-01-31 17:19:50.
    */
    @Repository
    public interface SupplierDao {

    List<Supplier> list(SupplierQuery query);

    long count(SupplierQuery query);

    void  insert(Supplier data);

    void update(Supplier data);

    Supplier findById(String id);

    void delete(String id);

    List<Supplier> listByIds(@Param(value = "ids") List<String> ids);

    Supplier findByAccount(String account);


}
